import _axios from '@/tool/http.js'

export const getDetail = (id) => {
    let options = {
        url: api.crm + '/reservationInfo/' + id,
        method: 'GET',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        }
    }
    return _axios(options)
}
export const getDetailPure = (id) => {
    let options = {
        url: api.crm + '/reservationInfo/get/' + id,
        method: 'GET',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        }
    }
    return _axios(options)
}
// 获取计划购买时间
export const getPlanTime = () => {
    let options = {
        url: api.base + '/systemDictionary/getByType/planBuyTime',
        method: 'POST',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        }
    }
    return _axios(options);
}
// 货物预约来源
export const getResource = () => {
    let options = {
        url: api.base + '/systemDictionary/getByType/reservationSource',
        method: 'POST',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        }
    }
    return _axios(options);
}